When sending a message, make sure to await the promise. It usually returns an id if the message was sent successfully.
await client.sendText(chatId, "Hello");
await client.sendTextWithMentions(chatId, "Hello");
await client.reply(chatId, "Hello", idOfMessageToReplyTo);
// set the fourth variable to true to set the chat to 'seen'
await client.reply(chatId, "Hello", idOfMessageToReplyTo, true);
await client.sendReplyWithMentions(chatId, "Hello", idOfMessageToReplyTo);
To forward messages use forwardMessages with the following params:
//forward multiple messages using an array of messageIds
await client.forwardMessages('xxxxx@c.us',[Array of Message Ids],true)
//forward single message by id
await client.forwardMessages('xxxxx@c.us,"messageId",true)